#-------------------------------------------------
#
# Project created by QtCreator 2012-06-02T19:53:30
#
#-------------------------------------------------

QT       += network

QT       -= gui

TARGET = VxNetLib
TEMPLATE = lib
CONFIG += staticlib

VxNetLib.depends += VxUtilLib


win32 {
    CharacterSet=2
    DEFINES -= UNICODE
    DEFINES += "WIN_PLATFORM"
    DEFINES += "WIN32"
    DEFINES += "_WINDOWS"
    DEFINES += "_CRT_SECURE_NO_WARNINGS"
    debug {
        DEFINES += "DEBUG"
        DESTDIR = "../lib/debugWin32/"
        LIBS += -L"../lib/debugWin32/" -lVxUtilLib
    }
    release {
        DEFINES += "RELEASE"
        DESTDIR = "../lib/releaseWin32/"
        LIBS += -L"../lib/releaseWin32/" -lVxUtilLib
    }
}

unix:!symbian {
    maemo5 {
        target.path = ../lib/debugLinux/
    } else {
        QMAKE_CXXFLAGS += -Wno-unused-parameter
        CONFIG(declarative_debug, debug|declarative_debug) {
            message(Debug build pass)
            DESTDIR = "../lib/debugLinux/"
            DEFINES += "DEBUG"
            target.path =  ../lib/debugLinux/
        } else {
            message(Release build pass)
            DESTDIR = "../lib/releaseLinux/"
            DEFINES += "RELEASE"
            target.path =  ../lib/releaseLinux/
        }
    }
    INSTALLS += target
}

INCLUDEPATH += ../

SOURCES += ./VxGetRandomPort.cpp \
    ./VxNat.cpp \
    ./VxProxy.cpp \
    ./VxResolveHost.cpp \
    ./VxSktAccept.cpp \
    ./VxSktAcceptMgr.cpp \
    ./VxSktBase.cpp \
    ./VxSktBaseMgr.cpp \
    ./VxSktBuf.cpp \
    ./VxSktConnect.cpp \
    ./VxSktConnectMgr.cpp \
    ./VxSktConnectSimple.cpp \
    ./VxSktCrypto.cpp \
    ./VxSktErrors.cpp \
    ./VxSktThrottle.cpp \
    ./VxSktUdp.cpp \
    ./VxSktUdpBroadcast.cpp \
    ./VxJunk.cpp

HEADERS += ./VxAnyRandomPort.h \
    ./VxGetRandomPort.h \
    ./VxNat.h \
    ./VxNetLib.h \
    ./VxProxy.h \
    ./VxResolveHost.h \
    ./VxSktAccept.h \
    ./VxSktAcceptMgr.h \
    ./VxSktBase.h \
    ./VxSktBaseMgr.h \
    ./VxSktBuf.h \
    ./VxSktConnect.h \
    ./VxSktConnectMgr.h \
    ./VxSktConnectSimple.h \
    ./VxSktCrypto.h \
    ./VxSktDefs.h \
    ./VxSktInfo.h \
    ./VxSktRandomData.h \
    ./VxSktThrottle.h \
    ./VxSktUdp.h \
    ./VxSktUdpBroadcast.h \
    ./VxJunk.h



